package db8;

public class Computer extends Student{
    double caozuo;
    double xiezuo;
    double ftest;
    double mtest;
    public Computer(){

    }
    public Computer(int no,String name,String sex,int age,double caozuo,double xiezuo,double mtest,double ftest){
        super(no, name, sex, age);
        this.caozuo=caozuo;
        this.xiezuo=xiezuo;
        this.mtest=mtest;
        this.ftest=ftest;
    }
    public double getGrade(){
        double grade=caozuo*0.4+xiezuo*0.2+mtest*0.2+ftest*0.2;
        return grade;
    }

}
